package future;

public class FutureThreadPoolDemo {

    public static void main(String[] args) {
        // 三个任务， 目前只有一个main来处理， 请问耗时多少
        long startTime = System.currentTimeMillis();


        try {
            Thread.sleep(500);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        try {
            Thread.sleep(300);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        try {
            Thread.sleep(300);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        long endTime = System.currentTimeMillis();

        System.out.println("---- costTime:" + (endTime - startTime) + "毫秒");
    }







}
